﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using ApiCoreProject.Model.Entities;

namespace ApiCoreProject.Bll.Interface
{
    public interface IUsersServe:IBaseBll<User>
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="loginName"></param>
        /// <param name="loginPwd"></param>
        /// <returns></returns>
        User Login(string loginName, string loginPwd);

        /// <summary>
        /// 分页获取用户信息
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        dynamic GetUsers(int pageSize, int pageIndex,string name);

        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        dynamic AddUsers(User user);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        dynamic DeleteUsers(int userID);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        dynamic DeleteBatch(int[] ids);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        dynamic UpdateUsers(int id,User user);
    }
}
